<%@page import="com.tubeonfire.model.admin.FeedbackModel"%>
<%@page import="com.google.appengine.api.users.User"%>
<%@page import="com.google.appengine.api.users.UserServiceFactory"%>
<%@page import="com.google.appengine.api.users.UserService"%>
<div class="header radius3">
   	<div class="headerinner">       	
           <a href="/admin"><img height="37px" src="/admin/images/tubeonfire.png" alt="" /></a>                                  
           <div class="headright">
           	<div class="headercolumn">&nbsp;</div>
           	<div id="searchPanel" class="headercolumn">
               	<div class="searchbox">
               			<form id="youtube" method="get" action="/admin/youtube/search">                      
                           <input type="text" id="keyword" name="keyword" class="radius2" value="Search videos from youtube" /> 
                           <input type="hidden" id="type1" name="type" value="2"/>
                           <input type="hidden" id="quanlity" name="quanlity" value="1"/> 
                       </form>
                   </div><!--searchbox-->
               </div><!--headercolumn-->
          	   <div id="notiPanel" class="headercolumn">
                   <div class="notiwrapper">
                       <a href="/admin/ajax/new_feedback.jsp" class="notialert radius2"><%=FeedbackModel.countNew() %></a>
                       <div class="notibox">
                           <ul class="tabmenu">
                               <li class="current"><a href="/admin/ajax/new_feedback.jsp" class="msg">New Feedback (<%=FeedbackModel.countNew() %>)</a></li>
                               <!-- <li><a href="/admin/ajax/activities.html">List Feedback</a></li> -->
                           </ul>
                           <br clear="all" />
                           <div class="loader"><img src="/admin/images/loaders/loader3.gif" alt="Loading Icon" /> Loading...</div>
                           <div class="noticontent"></div>
                       </div>
                   </div>
               </div>
               <div id="userPanel" class="headercolumn">
               <%
					UserService userService = UserServiceFactory.getUserService();
					User user = userService.getCurrentUser();
					if(user!=null&&userService.isUserAdmin()){						
				%>
                   <a href="#" class="userinfo radius2">
                       <img src="/admin/images/avatar.png" alt="" class="radius2" />
                       <span><strong><%=user.getNickname()%></strong></span>
                   </a>
                   <div class="userdrop">
                       <ul>                   
                           <li><a href="<%=userService.createLogoutURL("/")%>">Logout</a></li>
                       </ul>
                   </div><!--userdrop-->
               </div><!--headercolumn-->
               <%
					}
               %>
           </div>        
       </div>
</div>